  
  //  preferences-button.uc.js
  
  (function() {

       if (location != 'chrome://browser/content/browser.xul') return;
	    
       try {
          CustomizableUI.createWidget({
             id: 'Einstellungen-button',
             type: 'custom',
             defaultArea: CustomizableUI.AREA_NAVBAR,
             onBuild: function(aDocument) {         
                var toolbaritem = aDocument.createElementNS('http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul', 'toolbarbutton');
                var props = {
                   id: 'Einstellungen-button',
                   class: 'toolbarbutton-1 chromeclass-toolbar-additional',
                   removable: true,
                   label: 'Einstellungen-button',
				   accesskey: 'e',
                   tooltiptext: 'Einstellungen-button',
                   style: 'list-style-image: url()',
                   oncommand: "openPreferences();"
				};
				for (var p in props)
					toolbaritem.setAttribute(p, props[p]);
				return toolbaritem;
			}
		});
	} catch(e) { };
   
})();
